package ooday03;

public abstract class  Animal {
    String name;
    int age;
    String color;

    Animal(String name,int age,String color){//构造方法
        this.name=name;
        this.age=age;
        this.color=color;
    }

    void drink(){//普通方法
        System.out.println("一只"+age+"岁的"+color+name+"在喝水");

    }
    abstract void eat();//抽象类




}
